Skip to content

feat(batch): add batch payment processing - #98

Merged
AbdulmujibOladayo merged 1 commit into
Breedar:mainfrom
mftee:feat/batch-payment-processing
Sep 10, 2026
Merged

feat(batch): add batch payment processing#98
AbdulmujibOladayo merged 1 commit into
Breedar:mainfrom
mftee:feat/batch-payment-processing

Conversation

@mftee

@mftee mftee commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds internal/batch, a service that validates and processes multiple payment items submitted as one request:

  • Enforces the 1-100 item range (matching the Stellar multi-op transaction limit)
  • Validates each item independently so one bad recipient doesn't reject the whole batch
  • Deduplicates replayed submissions by idempotency key

Covered by unit tests for valid/invalid items, empty/oversized batches, and idempotent replay.

Closes #57

https://claude.ai/code/session_01AdKUdoVWCGSSDhKvhSKc6J

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

@mftee is attempting to deploy a commit to the abdulmujiboladayo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@AbdulmujibOladayo AbdulmujibOladayo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idempotency semantics — same key + same batch ID replays the cached Result instead of reprocessing (important so retries don't double-count), while same key + different batch ID is correctly rejected as key reuse. Per-item validation that rejects bad items without failing the whole batch matches how the architecture doc describes partial batch handling. Same float64-for-money note as #97 — worth a decimal type before this touches real settlement.

@AbdulmujibOladayo
AbdulmujibOladayo merged commit 373c8bd into Breedar:main Sep 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add batch payment processing

2 participants